package hasthi.container;

import hasthi.common.HasthiException;
import hasthi.wsdm.ManagedServiceHandle;

import java.util.Map;

import javax.xml.namespace.QName;

import xsul.processor.soap_over_http.SoapHttpDynamicInfosetProcessor;

public class Xsul1SystemHandle extends ManagedServiceHandle{
    private final SoapHttpDynamicInfosetProcessor service;
    public Xsul1SystemHandle(QName name, QName portTypeName,String description, 
            Map<QName,Object> properties, SoapHttpDynamicInfosetProcessor service) throws HasthiException {
        super(name, portTypeName,description, properties);
        this.service = service;
    }
    
    public Xsul1SystemHandle(QName name,QName portTypeName, SoapHttpDynamicInfosetProcessor service) throws HasthiException {
        super(name,portTypeName);
        this.service = service;
    }

    public String getSystemEndPoint() {
        return service.getServer().getLocation();
    }

    public void shutDown() throws HasthiException {
        service.shutdown();
    }
}
